package com.aaa.controller;

import com.aaa.entity.Menu;
import com.aaa.service.MenuService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("menu")
public class MenuController {
    @Resource
    MenuService menuService;

    @RequestMapping("menuSelect")
    @ResponseBody
    public List<Map<String, Object>> select(String eusername) {
        //菜单集合 一级和二级菜单
        List<Map<String, Object>> list = menuService.findMenu(eusername);
        return list;
    }
}
